package com.gmlive.common.sample

import java.io.File

object FileUtils {

    fun deleteFile(filePath: String) {
        val file = File(filePath)

        if (file.exists() && file.isDirectory) {
            file.listFiles()?.forEach {
                deleteFile(it.absolutePath)
            }
        } else {
            file.delete()
        }
    }
}